package com.zhou.seckill.result;

public class SecKillCode {

    private String code;
    private String message;

    private SecKillCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public static SecKillCode PROMO_NOT_SUBSCRIBE = new SecKillCode("PROMO_NOT_SUBSCRIBE","没有预约活动");

    public static SecKillCode WARE_OUT_OF_STOCK = new SecKillCode("WARE_OUT_OF_STOCK","商品库存不足");

    public static SecKillCode ORDER_OUT_OF_LIMIT = new SecKillCode("ORDER_OUT_OF_LIMIT","每个用户只能下一单");

    public static SecKillCode PROMO_NOT_FOUND = new SecKillCode("PROMO_NOT_FOUND","活动已结束");

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
